package com.yida.gwj.report.controller;

import com.yida.common.core.web.page.TableDataInfo;
import com.yida.gwj.report.domain.request.GwjBizProgressQueryRequest;
import com.yida.gwj.report.service.IGwjBusinessProgressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import static com.yida.common.core.utils.PageUtils.getDataTable;

/**
 * @Author: PPV
 * @Date: 2023-02-28
 */
@RestController
@RequestMapping("/bizProgress")
@Api(tags = "业务进度")
public class GwjBusinessProgressController {

    @Resource
    private IGwjBusinessProgressService progressService;

    /**
     * 业务进度查询
     */
    @GetMapping("/list")
    @ApiOperation("业务进度查询")
    public TableDataInfo list( @Validated GwjBizProgressQueryRequest request) {
        return getDataTable(progressService.getPage(request));
    }


}
